package com.mybatis;

import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

/**
 * @ClassName TypeHandler
 * @Description 设计模式
 * @Author DuX1aoQiang
 * @Date 2023/5/22 16:37
 * @Version 1.0
 */
public interface TypeHandler<T> {
    void setParameter(PreparedStatement statement,int i , T value);

    T getResult(ResultSet set, String colName) throws SQLException;
}
